{% extends "bootstrap/base.html" %}
{% block scripts %}
    <!-- Latest compiled and minified JavaScript -->
    <script src="/static/js/jquery-3.1.0.min.js"></script>
    <script src="/static/js/bootstrap.min.js"></script>
    <script src="/static/js/bootstrap-table/bootstrap-table.min.js"></script>
    <script src="/static/js/bootstrap-table/bootstrap-table-locale-all.min.js"></script>
<script type="application/javascript">

    function getIdSelections() {
            return $.map($('#table').bootstrapTable('getSelections'), function(row) {
                return row.node_id
            });
        }
</script>
{#    {{super()}}#}
{% endblock %}

{% block styles %}
{#    {{super()}}#}
    <!-- Latest compiled and minified CSS -->
    <link rel="stylesheet" href="/static/css/bootstrap.min.css">
    <link rel="stylesheet" href="/static/css/bootstrap-theme.min.css">
    <link rel="stylesheet" href="/static/css/bootstrap-table.min.css">
{% endblock %}
{% block content %}
{% for message in get_flashed_messages() %}
<div class="alert alert-warning">
    <button type="button" class="close" data-dismiss="alert">×</button>
    {{ message }}
{% endfor %}
<div class="container-fluid">
    <div class="row">
        <div class="col-lg-offset-3 col-lg-6 col-md-offset-3 col-md-6 col-sm-12 col-xs-12">
                <table id="table"
                       data-toggle="table"
                       data-toolbar="#toolbar"
                       data-height="150"
                       data-click-to-select="true"
                       data-url="{{ url_for("Depoutjson") }}">
                    <thead>
                    <tr>
                        <th data-field="state" data-radio="true"></th>
                        <th data-field="node_id">部门内码</th>
                        <th data-field="dept_name">部门名称</th>
                        <th data-field="sys_id">部门系统编码</th>
                        <th data-field="parent_id">上级内码</th>
                    </tr>
                    </thead>
                </table>
            </div>
        </div>
    </div>
</div>

{% endblock %}
